from django.db import models
from django.contrib.auth.models import AbstractUser

# Create your models here.


class User(AbstractUser):
    """添加手机字mobile段"""
    mobile = models.CharField(max_length=11, unique=True, verbose_name='手机号码')

    class Meta:
        # 创建表名
        db_table = 'tb_users'

    def __str__(self):
        return self.username

